package com.system.blogAdmin.auth.entity;

import com.cnc.common.lang.entity.BaseEntity;
import com.cnc.common.lang.annotation.Label;
import org.hibernate.validator.constraints.NotBlank;

import java.sql.Date;


/**
 * @描述：[BEAN_NAME] 实体�?
 * @作�??: Auto Code
 * @创建时间: 2017-4-22 10:10:43
 * @版本: 1.0
 */
public class User extends BaseEntity {

	//超级管理原账号
	public static final String ADMIN_USER_NAME = "cnc";

	@Label("姓名")
	@NotBlank(message = "姓名不能为空！")
	private String name;

	@Label("账号")
	@NotBlank(message = "账号不能为空！")
	private String account;

	@Label("密码")
	@NotBlank(message = "密码不能为空")
	private String password;

	@Label("职业")
	private String job;

	@Label("是否锁定")
	private Integer isLock;

	@Label("自我介绍")
	private String introduce;

	@Label("用户头像")
	private String userImg;

	@Label("手机号码")
	private String mobilePhone;

	@Label("邮箱")
	private String email;

	@Label("创建时间")
	private Date createTime;

	@Label("修改时间")
	private Date modifyTime;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getJob() {
		return job;
	}

	public void setJob(String job) {
		this.job = job;
	}

	public Integer getIsLock() {
		return isLock;
	}

	public void setIsLock(Integer isLock) {
		this.isLock = isLock;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public String getUserImg() {
		return userImg;
	}

	public void setUserImg(String userImg) {
		this.userImg = userImg;
	}

	public String getMobilePhone() {
		return mobilePhone;
	}

	public void setMobilePhone(String mobilePhone) {
		this.mobilePhone = mobilePhone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getModifyTime() {
		return modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Override
	public String toString() {
		return "User{" +
				"name='" + name + '\'' +
				", account='" + account + '\'' +
				", password='" + password + '\'' +
				", job='" + job + '\'' +
				", isLock=" + isLock +
				", introduce='" + introduce + '\'' +
				", userImg='" + userImg + '\'' +
				", mobilePhone='" + mobilePhone + '\'' +
				", email='" + email + '\'' +
				", createTime=" + createTime +
				", modifyTime=" + modifyTime +
				'}';
	}
}
